package com.xizi.forum.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
@Data
public class ArticleInfo {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;

    private Boolean own = false;

    // 扩充属性
    @JsonProperty("user")
    private UserInfo userInfo;

    @JsonProperty("board")
    private BoardInfo boardInfo;
}